var mysql = require('./mysql');

exports.sendAllUser = function(data){
    var that = this;

    mysql.runQuery('SELECT * FROM users', function(err, rows){
        //gui tin hieu den client [dataTable.js]
        that.emit("send all users", {allUser: rows });
    });
};
